#include <stdio.h>

static char package[1000];
static char str[1000];
static unsigned int n;

int main(void)
{
	while (1)
	{
		scanf("%d[%[^]]]", &n, str);
		//int ret = scanf("%d[%[^1-9]]", &n, str);
		//printf("ret=%d, str=%s\n", ret, str);

		for (int i=0; i<n; i++)
		{
			printf("%s", str);
		}
	}

	return 0;
}